//package com.far.game.xiuzhen.conf;
//
//import org.springframework.beans.factory.config.BeanDefinition;
//import org.springframework.beans.factory.support.BeanDefinitionRegistry;
//import org.springframework.context.annotation.AnnotationBeanNameGenerator;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @className: CustomNameGenerator
// * @description: 解决不同包下相同类名冲突
// * @date: 2021/3/5 14:31
// */
//@Configuration
//public class CustomNameGenerator extends AnnotationBeanNameGenerator {
//    @Override
//    public String generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry) {
//        //全限定类名
//        String beanName = definition.getBeanClassName();
//        return beanName;
//    }
//}
